package cn.hfjava.kz.service;

import cn.hfjava.kz.entity.po.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author lds
* @description 针对表【permissions(权限表)】的数据库操作Service
* @createDate 2024-07-23 09:51:13
*/
public interface PermissionService extends IService<Permission> {
    /**
     * 获取所有的权限
     */
    List<Permission> findAllPermission();

    /**
     * 构建权限树结构
     */
    List<Permission> buildPermissionTree(List<Permission> permList);
    List<Permission> listWithTree();
}
